package com.enzo.prms.common.session;

/**
 * @author prms1.0
 * 
 * @date:2012-5-22 ����10:13:26
 * @version :
 * 
 */
public class RequestContext {
	private final static ThreadLocal<UserSessionInfo> request_context_holder = new ThreadLocal<UserSessionInfo>();

	public static void setUSI(UserSessionInfo userSessionInfo) {
		request_context_holder.set(userSessionInfo);
	}

	public static UserSessionInfo getUSI() {
		return request_context_holder.get();
	}

	public static String getUserName() {
		return getUSI().getUserName();
	}
}
